home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Code / Chapter Code.exe / Chapter04 / onecolorbox.java next >
Text File  |  2000-08-31  |  697b  |  37 lines

  1. Transform {
  2.  
  3.   translation   0 0 0
  4.  
  5.  
  6.   children   Shape {
  7.     appearance  MultiAppearance {
  8.          material   Material {
  9.             diffuseColor 0 0 1
  10.          }
  11.     }
  12.  
  13.     geometry   MultiMesh {
  14.       coord   Coordinate {
  15.          point 
  16.            [ -1 1 1,
  17.            -1 -1 1,
  18.             1 1 1,
  19.             1 -1 1,
  20.             1 1 -1,
  21.             1 -1 -1,
  22.            -1 1 -1,
  23.            -1 -1 -1 ]
  24.       }
  25.  
  26.       coordIndex   
  27.          [ 0, 1, 3, 2, -1,
  28.            4, 5, 7, 6, -1,
  29.            6, 7, 1, 0, -1,
  30.            2, 3, 5, 4, -1,
  31.            6, 0, 2, 4, -1,
  32.            1, 7, 5, 3, -1 ]
  33.  
  34.     } #end of MultiMesh
  35.   } #end of Shape
  36. } #end of Transform
  37.